//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    currentTab:0,
    
  },

  // 切换导航栏
  swichNav:function(e){
    let { currentTab} = this.data;
    let current = e.target.dataset.current;
    if(currentTab === e.target.dataset.current){
      return false;
    }else{
      this.setData({
        currentTab:current
      })
    }
  },
  
  onLoad: function () {
    
  },
  
})
